package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class MergeWhenNotMatchedClause implements MergeWhenClause {

    private int beginIndex;
    private int endIndex;
    private MergeInsertSpecification mergeInsertSpecification;

    public MergeWhenNotMatchedClause(int beginIndex,
                                     MergeInsertSpecification mergeInsertSpecification) {
        this.beginIndex = beginIndex;
        this.endIndex = mergeInsertSpecification.getEndIndex();
        this.mergeInsertSpecification = mergeInsertSpecification;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public MergeInsertSpecification getMergeInsertSpecification() {
        return mergeInsertSpecification;
    }

}
